package com.diy.sigmund.diyuser.feign.fallback;

import feign.hystrix.FallbackFactory;
import java.lang.reflect.Method;

/**
 * @author ylm-sigmund
 * @since 2022/6/9 22:59
 */
public abstract class CustomFallbackFactory<T> implements FallbackFactory<T> {

    @Override
    public T create(Throwable cause) {
        return null;
    }

    /**
     * 需要method获取对应的接口class
     */
    public abstract T create(Method method, Throwable cause);
}
